<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta charset="UTF-8">
<title></title>
		<link rel="stylesheet" href="/ScienceManagement/bootstrap/css/bootstrap.min.css">
		<script type="text/javascript" src="/ScienceManagement/jquery/jquery-1.12.4.js"></script>
		<script type="text/javascript" src="/ScienceManagement/bootstrap/js/bootstrap.js"></script>
</head>

<body>
    			<!-- 导航栏 -->
	<%@ include file="manage_base.jsp" %>
			<!-- 表格 -->
          
            <div class="panel panel-default">
            <!-- Default panel contents -->

				<!-- Table -->
			<table class="table">
				<thead>
                <tr>
                  <th>用户名</th>
				  <th>删除</th>

                </tr>
              </thead>
              <tbody>
              <c:forEach items="${usersList}" var="user">
                 <tr>
                    <td>${user.username}</td><!-- EL表达式简单输出相关信息 -->
                    <td>
					  <button type="button" class="btn btn-danger btn-xs" onclick="deleteUser('${user.username}')"><i class=" glyphicon glyphicon-remove"></i></button>
				  	</td>
                </tr>
              </c:forEach>
              </tbody>
					</table>
				</div>	
				
	<script src="/ScienceManagement/jquery/jquery-2.1.1.min.js"></script>
    <script src="/ScienceManagement/layer/layer.js"></script>
    <script src="/ScienceManagement/bootstrap/js/bootstrap.min.js"></script>
				
				
	<script type="text/javascript">
        function deleteUser(username){
        	layer.confirm("确定要删除用户名为"+username+"的用户？",{"title":"提示"},
        		function (){window.location.href="/ScienceManagement/ManageDelUser?username="+username}
        	
        	)
        }    
        
    </script>
				
</body>
</html>